package SearchList;

import java.io.Serializable;
import java.util.ArrayList;

public class SearchList implements Serializable{
    private String word;        //store the word
    private String address;     //store the address
    private ArrayList<Integer> line;        //store the line of this word
    private ArrayList<String> content;      //store the corresponding content of the line

    public SearchList(){
        super();
    }

    public SearchList(String word1, String address1, ArrayList<Integer> line1){
        super();
        this.word = word1;
        this.address = address1;
        this.line = new ArrayList<Integer>(line1);
    }

    //return the attribute that user want
    public String getWord(){
        return this.word;
    }

    //transfer them to private
    public void setWord(String word){
        this.word = word;
    }

    //return the attribute that user want
    public String getAddress(){
        return this.address;
    }

    //transfer them to private
    public void setAddress(String address){
        this.address = address;
    }

    //return the attribute that user want
    public ArrayList<Integer> getLine(){
        return this.line;
    }

    //transfer them to private
    public void setLine(ArrayList<Integer> line1){
        this.line = new ArrayList<Integer>(line1);
    }

    //return the attribute that user want
    public ArrayList<String> getContent(){
        return this.content;
    }

    //transfer them to private
    public void setContent(ArrayList<String> content1){
        this.content = new ArrayList<String>(content1);
    }

}
